<?php
namespace Yj\Excel\Concerns;

use Yj\Excel\Write;

trait Exportable
{

    public function store($export,string $filePath = null,$writerType ='Xlsx'){
        $temporaryFile = $this->export($export, $filePath, $writerType);
    }

    public function export($export, string $fileName, string $writerType = null){
        return App(Write::class)->export($export, $writerType);
    }

}